
all:  querySig protest qsort gettime spcout showerr

GCCOPTS  = -g #-fpermissive

PROTOOBJS = protoMsg.o config.o protest.o

querySig: querySig.o
	g++ -o querySig querySig.o

protest: $(PROTOOBJS)
	g++ -o protest $(PROTOOBJS) -lprotobuf

qsort: qsort.o
	gcc -o qsort qsort.o

gettime: gettime.o
	g++ -o gettime gettime.o

spcout: spcout.o
	g++ -o spcout spcout.o

showerr: showerr.o
	g++ -o showerr showerr.o

%.o: %.cpp
	g++ $(GCCOPTS) -c $<

%.o: %.c
	gcc $(GCCOPTS) -c $<

clean:
	rm -f querySig protest qsort gettime spcout
	rm -f *.o
